package com.jfinal.weixin.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.weixin.sdk.api.ApiResult;
import com.jfinal.weixin.sdk.api.UserApi;
import com.jfinal.weixin.sdk.msg.in.event.EventInMsg;
import com.jfinal.weixin.sdk.msg.out.OutTextMsg;
import com.jfinal.weixin.sdk.utils.StringUtil;


/**
 * Created by chengzhichao on 16/5/4.
 */
public class MbUser extends Model<MbUser> {
    public static final MbUser dao = new MbUser();

    /**
     * 查询指定票数是多少名
     * @param curscore
     * @return
     */
    public int getbiger(int curscore){
        return super.find("select id from mbuser where curscore>?",new Object[]{curscore}).size();
    }

    public int getalluser(){
        return super.find("select id from mbuser").size();
    }


}
